package com.yami.shop.mystery.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 盲盒扩展表
 *
 * @author wxf
 * @date 2023/4/6 15:52
 */
@Data
@TableName("tz_mystery_box_extension")
public class MysteryBoxExtension implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "盲盒id")
    private Long bid;

    @Schema(description = "商品id")
    private Long pid;

    @Schema(description = "寄售折扣")
    private Double consignment;

    @Schema(description = "商品利润")
    private BigDecimal profit;

    @Schema(description = "回收折扣")
    private Double recyclingdiscount;

    @Schema(description = "实际概率")
    private Double realProbability;

    @Schema(description = "显示概率")
    private Double showProbability;

    @Schema(description = "被抽中次数")
    private Integer hits;

    @Schema(description = "级别（1：白金 2：钻石 3：传说 4：史诗）")
    private Integer level;

    @Schema(description = "用于盲盒活动的库存")
    private Integer totalStocks;

    @Schema(description = "盲盒活动可用库存")
    private Integer stocks;

    @TableField(exist = false)
    @Schema(description = "商品主图")
    private String pic;

    @TableField(exist = false)
    @Schema(description = "商品名称")
    private String prodName;

}
